import ProTable from '@/components/ProTable/index.vue'
import MyElButton from '@/components/commonComponents/myElButton/index.vue'
import MyElDialog from '@/components/commonComponents/myElDialog/index.vue'
import MyElInput from '@/components/commonComponents/myElInput/index.vue'
import MyElSelect from '@/components/commonComponents/myElSelect/index.vue'
import PageSearch from '@/components/PageSearch/index.vue'
import PageList from '@/components/PageList/index.vue'
import PageForm from '@/components/PageForm/index.vue'
import SwitchCard from '@/components/SwitchCard/index.vue'

export default {
  install: Vue => {
    Vue.component('ProTable', ProTable) // element-plus table的二次封装，内置插槽
    Vue.component('MyElButton', MyElButton) // element-plus 单个button组件
    Vue.component('MyElDialog', MyElDialog) // element-plus 单个dialog组件，内置插槽
    Vue.component('MyElInput', MyElInput) // element-plus 单个input组件
    Vue.component('MyElSelect', MyElSelect) // element-plus 单个select组件
    Vue.component('PageSearch', PageSearch) // element-plus search拼接组件，根据type判断显示类型
    Vue.component('PageList', PageList) // element-plus 分页组件，内置插槽嵌入表格
    Vue.component('PageForm', PageForm) // element-plus form拼接组件，根据type判断显示类型
    Vue.component('SwitchCard', SwitchCard) // 卡片切换组件
  }
}
